/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-07-22
*/
package com.rzico.basics.entity;

import com.rzico.annotation.IgnoreSwaggerParameter;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   商品清单项数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_bom_item")
public class BomItem{

    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "" )
    protected Long bomId;

    @ApiModelProperty(value = "商品" )
    protected Long productId;

    @ApiModelProperty(value = "捆绑系数" )
    protected java.math.BigDecimal convRate;

    @ApiModelProperty(value = "分组号" )
    protected String groupId;

    /**
     * 当前对象的量表信息
     */
    @IgnoreSwaggerParameter
    @JsonIgnore
    protected Product product;


    public String getProductName() {
        Product product = getProduct();
        if (product!=null) {
            return product.getName();
        } else {
            return null;
        }
    }

    public void setProductName(String value) {

    }

    public String getProductThumbnail() {
        Product product = getProduct();
        if (product!=null) {
            return product.getThumbnail();
        } else {
            return null;
        }
    }

    public void setProductThumbnail(String value) {

    }

    public BigDecimal getProductPrice() {
        Product product = getProduct();
        if (product!=null) {
            return product.getPrice();
        } else {
            return null;
        }
    }

    public void setProductPrice(String value) {

    }



    public String getUnit() {
        Product product = getProduct();
        if (product!=null) {
            return product.getUnit();
        } else {
            return null;
        }
    }

    public void setUnit(Boolean value) {

    }


    public Integer getOrders() {
        Product product = getProduct();
        if (product!=null) {
            return product.getOrders();
        } else {
            return null;
        }
    }

    public void setOrders(Boolean value) {

    }

    public String getSn() {
        Product product = getProduct();
        if (product!=null) {
            return product.getSn();
        } else {
            return null;
        }
    }

    public void setSn(Boolean value) {

    }


}
